<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet"/>
    <link rel="stylesheet" href="css/Site.css"/>
    <link rel="stylesheet" href="css/zy.all.css"/>
    <link rel="stylesheet" href="css/font-awesome.min.css"/>
    <link rel="stylesheet" href="css/amazeui.min.css"/>
    <link rel="stylesheet" href="css/admin.css"/>
</head>

<body>
<div class="dvcontent">

    <div>
        <!--tab start-->
        <div class="tabs" style="margin: 30px;">
            <div class="hd">
                <ul>
                    <li class="on" id="good" style="box-sizing: initial;-webkit-box-sizing: initial;">商品记录</li>
                    <li class="" style="box-sizing: initial;-webkit-box-sizing: initial;">添加商品</li>
                    <li class="" id="supply" style="box-sizing: initial;-webkit-box-sizing: initial;">供应商记录</li>
                    <li class="" style="box-sizing: initial;-webkit-box-sizing: initial;">添加供应商</li>
                    <li class="" id="customer" style="box-sizing: initial;-webkit-box-sizing: initial;">客户记录</li>
                    <li class="" style="box-sizing: initial;-webkit-box-sizing: initial;">添加客户</li>
                </ul>
            </div>
            <div class="bd">
                <!--商品-->
                <ul style="display: block;padding: 20px;">
                    <li>
                        <!--分页显示角色信息 start-->
                        <div id="dv1">
                            <input type="button" onclick="btn_goodadd(1)" value="添加商品"
                                   style="background-color: #2C7659;border-color: #2C7659"/>
                            <table class="table" id="goodRecord">
                                <thead>
                                <tr>
                                    <th>编号</th>
                                    <th>商品名称</th>
                                    <th>采购单价</th>
                                    <th>销售单价</th>
                                    <th>备注</th>
                                    <th>编辑</th>
                                    <th>删除</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>商品1</td>
                                    <td>50</td>
                                    <td>100</td>
                                    <td>测试测试</td>
                                    <td class="edit">
                                        <button onclick="btn_goodedit(1)"><i class="icon-edit bigger-120"></i>编辑
                                        </button>
                                    </td>
                                    <td class="delete">
                                        <button onclick="btn_gooddelete(1)"><i class="icon-trash bigger-120"></i>删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>商品1</td>
                                    <td>50</td>
                                    <td>100</td>
                                    <td>测试测试</td>
                                    <td class="edit">
                                        <button onclick="btn_edit(1)"><i class="icon-edit bigger-120"></i>编辑</button>
                                    </td>
                                    <td class="delete">
                                        <button onclick="btn_delete(1)"><i class="icon-trash bigger-120"></i>删除</button>
                                    </td>
                                </tr>

                                </tbody>

                            </table>
                        </div>
                        <!--分页显示角色信息 end-->
                    </li>
                </ul>

                <ul class="theme-popbod dform" style="display: none;">
                    <div class="am-cf admin-main" style="padding-top: 0px;">
                        <!-- content start -->

                        <div class="am-cf admin-main" style="padding-top: 0px;">
                            <!-- content start -->
                            <div class="admin-content">
                                <div class="admin-content-body">

                                    <div class="am-g">
                                        <div class="am-u-sm-12 am-u-md-4 am-u-md-push-8">

                                        </div>
                                        <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4"
                                             style="padding-top: 30px;">
                                            <form class="am-form am-form-horizontal"
                                                  action="/test_war/addgood" method="post">

                                                <div class="am-form-group">
                                                    <label class="am-u-sm-3 am-form-label">
                                                        商品名称</label>
                                                    <div class="am-u-sm-9">
                                                        <input type="text" id="addgoodname" required
                                                               placeholder="请输入商品名称" name="name">
                                                        <small>10字以内...</small>
                                                    </div>
                                                </div>

                                                <div class="am-form-group">
                                                    <label class="am-u-sm-3 am-form-label">
                                                        采购单价</label>
                                                    <div class="am-u-sm-9">
                                                        <input type="text" id="addgoodbuy" required
                                                               placeholder="请输入采购单价" name="name">
                                                        <small>采购单价</small>
                                                    </div>
                                                </div>

                                                <div class="am-form-group">
                                                    <label class="am-u-sm-3 am-form-label">
                                                        销售单价</label>
                                                    <div class="am-u-sm-9">
                                                        <input type="text" id="addgoodsell" required
                                                               placeholder="请输入销售单价" name="name">
                                                        <small>销售单价</small>
                                                    </div>
                                                </div>

                                                <div class="am-form-group">
                                                    <label for="user-intro" class="am-u-sm-3 am-form-label">
                                                        备注</label>
                                                    <div class="am-u-sm-9">
									<textarea class="" rows="5" id="goodinfo" name="remark"
                                              placeholder="输入备注"></textarea>
                                                        <small>20字以内...</small>
                                                    </div>
                                                </div>
                                                <div class="am-form-group">
                                                    <div class="am-u-sm-9 am-u-sm-push-3">
                                                        <input type="submit" class="am-btn am-btn-success"
                                                               value="添加商品"/>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>

                                </div>
                                <!-- content end -->
                            </div>
                            <!--添加 end-->
                            <!--end-->
                        </div>
                    </div>
                </ul>

                <!--供应商-->

                <ul style="display: block;padding: 20px;">
                    <li>
                        <!--分页显示角色信息 start-->
                        <div id="dv2">
                            <input type="button" onclick="btn_supplyadd(1)" value="添加供应商"
                                   style="background-color: #2C7659;border-color: #2C7659"/>
                            <table class="table" id="supplyRecord">
                                <thead>
                                <tr>
                                    <th>编号</th>
                                    <th>供应商名称</th>
                                    <th>电话</th>
                                    <th>备注</th>
                                    <th>编辑</th>
                                    <th>删除</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>供应商1</td>
                                    <td>12345678910</td>
                                    <td>测试测试</td>
                                    <td class="edit">
                                        <button onclick="btn_supplyedit(1)"><i class="icon-edit bigger-120"></i>编辑
                                        </button>
                                    </td>
                                    <td class="delete">
                                        <button onclick="btn_supplydelete(1)"><i class="icon-trash bigger-120"></i>删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>供应商1</td>
                                    <td>12345678910</td>
                                    <td>测试测试</td>
                                    <td class="edit">
                                        <button onclick="btn_edit(1)"><i class="icon-edit bigger-120"></i>编辑</button>
                                    </td>
                                    <td class="delete">
                                        <button onclick="btn_delete(1)"><i class="icon-trash bigger-120"></i>删除</button>
                                    </td>
                                </tr>

                                </tbody>

                            </table>
                        </div>
                        <!--分页显示角色信息 end-->
                    </li>
                </ul>

                <ul class="theme-popbod dform" style="display: none;">
                    <div class="am-cf admin-main" style="padding-top: 0px;">
                        <!-- content start -->

                        <div class="am-cf admin-main" style="padding-top: 0px;">
                            <!-- content start -->
                            <div class="admin-content">
                                <div class="admin-content-body">

                                    <div class="am-g">
                                        <div class="am-u-sm-12 am-u-md-4 am-u-md-push-8">

                                        </div>
                                        <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4"
                                             style="padding-top: 30px;">
                                            <form class="am-form am-form-horizontal"
                                                  action="/test_war/addsupply" method="post">

                                                <div class="am-form-group">
                                                    <label class="am-u-sm-3 am-form-label">
                                                        供应商名称</label>
                                                    <div class="am-u-sm-9">
                                                        <input type="text" id="addsupplyname" required
                                                               placeholder="请输入供应商名称" name="name">
                                                        <small>10字以内...</small>
                                                    </div>
                                                </div>

                                                <div class="am-form-group">
                                                    <label class="am-u-sm-3 am-form-label">
                                                        电话</label>
                                                    <div class="am-u-sm-9">
                                                        <input type="text" id="addgsupplyphone" required
                                                               placeholder="请输入电话号码" name="name">
                                                        <small>供应商电话</small>
                                                    </div>
                                                </div>

                                                <div class="am-form-group">
                                                    <label for="user-intro" class="am-u-sm-3 am-form-label">
                                                        备注</label>
                                                    <div class="am-u-sm-9">
									<textarea class="" rows="5" id="supplyinfo" name="remark"
                                              placeholder="输入备注"></textarea>
                                                        <small>20字以内...</small>
                                                    </div>
                                                </div>
                                                <div class="am-form-group">
                                                    <div class="am-u-sm-9 am-u-sm-push-3">
                                                        <input type="submit" class="am-btn am-btn-success"
                                                               value="添加供应商"/>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>

                                </div>
                                <!-- content end -->
                            </div>
                            <!--添加 end-->
                            <!--end-->
                        </div>
                    </div>
                </ul>

                <!--客户-->

                <ul style="display: block;padding: 20px;">
                    <li>
                        <!--分页显示角色信息 start-->
                        <div id="dv3">
                            <input type="button" onclick="btn_customeradd(1)" value="添加客户"
                                   style="background-color: #2C7659;border-color: #2C7659"/>
                            <table class="table" id="tbRecord">
                                <thead>
                                <tr>
                                    <th>编号</th>
                                    <th>客户名称</th>
                                    <th>电话</th>
                                    <th>备注</th>
                                    <th>编辑</th>
                                    <th>删除</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>客户1</td>
                                    <td>12345678910</td>
                                    <td>测试测试</td>
                                    <td class="edit">
                                        <button onclick="btn_customeredit(1)"><i class="icon-edit bigger-120"></i>编辑
                                        </button>
                                    </td>
                                    <td class="delete">
                                        <button onclick="btn_customerdelete(1)"><i class="icon-trash bigger-120"></i>删除
                                        </button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>客户1</td>
                                    <td>12345678910</td>
                                    <td>测试测试</td>
                                    <td class="edit">
                                        <button onclick="btn_edit(1)"><i class="icon-edit bigger-120"></i>编辑</button>
                                    </td>
                                    <td class="delete">
                                        <button onclick="btn_delete(1)"><i class="icon-trash bigger-120"></i>删除</button>
                                    </td>
                                </tr>

                                </tbody>

                            </table>
                        </div>
                        <!--分页显示角色信息 end-->
                    </li>
                </ul>

                <ul class="theme-popbod dform" style="display: none;">
                    <div class="am-cf admin-main" style="padding-top: 0px;">
                        <!-- content start -->

                        <div class="am-cf admin-main" style="padding-top: 0px;">
                            <!-- content start -->
                            <div class="admin-content">
                                <div class="admin-content-body">

                                    <div class="am-g">
                                        <div class="am-u-sm-12 am-u-md-4 am-u-md-push-8">

                                        </div>
                                        <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4"
                                             style="padding-top: 30px;">
                                            <form class="am-form am-form-horizontal"
                                                  action="/test_war/addcustomer" method="post">

                                                <div class="am-form-group">
                                                    <label class="am-u-sm-3 am-form-label">
                                                        客户名称</label>
                                                    <div class="am-u-sm-9">
                                                        <input type="text" id="addcustomername" required
                                                               placeholder="请输入客户名称" name="name">
                                                        <small>10字以内...</small>
                                                    </div>
                                                </div>

                                                <div class="am-form-group">
                                                    <label class="am-u-sm-3 am-form-label">
                                                        电话</label>
                                                    <div class="am-u-sm-9">
                                                        <input type="text" id="addcustomerphone" required
                                                               placeholder="请输入电话号码" name="name">
                                                        <small>客户电话</small>
                                                    </div>
                                                </div>

                                                <div class="am-form-group">
                                                    <label for="user-intro" class="am-u-sm-3 am-form-label">
                                                        备注</label>
                                                    <div class="am-u-sm-9">
									<textarea class="" rows="5" id="user-intro" name="remark"
                                              placeholder="输入备注"></textarea>
                                                        <small>20字以内...</small>
                                                    </div>
                                                </div>
                                                <div class="am-form-group">
                                                    <div class="am-u-sm-9 am-u-sm-push-3">
                                                        <input type="submit" class="am-btn am-btn-success"
                                                               value="添加客户"/>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>

                                </div>
                                <!-- content end -->
                            </div>
                            <!--添加 end-->
                            <!--end-->
                        </div>
                    </div>
                </ul>

                <!--tab end-->

            </div>


            <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
            <script src="js/plugs/Jqueryplugs.js" type="text/javascript"></script>
            <script src="js/_layout.js"></script>
            <script src="js/plugs/jquery.SuperSlide.source.js"></script>
            <script>
                var num = 1;
                window.onload = function () {
                    document.getElementById("customer").click();
                }
                $(function () {

                    $(".tabs").slide({trigger: "click"});

                });


                var btn_save = function () {
                    var pid = $("#RawMaterialsTypePageId  option:selected").val();
                    var name = $("#RawMaterialsTypeName").val();
                    var desc = $("#RawMaterialsTypeDescription").val();
                    var ramark = $("#Ramark").val();
                    $.ajax({
                        type: "post",
                        url: "/RawMaterialsType/AddRawMaterialsType",
                        data: {name: name, pid: pid, desc: desc, ramark: ramark},
                        success: function (data) {
                            if (data > 0) {
                                $.jq_Alert({
                                    message: "添加成功",
                                    btnOktext: "确认",
                                    dialogModal: true,
                                    btnOkClick: function () {
                                        //$("#RawMaterialsTypeName").val("");
                                        //$("#RawMaterialsTypeDescription").val("");
                                        //$("#Ramark").val("");
                                        //page1();
                                        location.reload();

                                    }
                                });
                            }
                        }
                    });
                    alert(t);
                }

                var btn_goodadd = function (id) {
                    $.jq_Panel({
                        url: "/RawMaterialsType/EditRawMaterialsType?id=" + id,
                        message: "<div class=\"admin-content\">\n" +
                            "                                <div class=\"admin-content-body\">\n" +
                            "\n" +
                            "                                    <div class=\"am-g\">\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-4 am-u-md-push-8\">\n" +
                            "\n" +
                            "                                        </div>\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-8 am-u-md-pull-4\"\n" +
                            "                                             style=\"padding-top: 30px;\">\n" +
                            "                                            <form class=\"am-form am-form-horizontal\"\n" +
                            "                                                  action=\"/test_war/addgood\" method=\"post\">\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        商品的名称</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addgoodname\" required\n" +
                            "                                                               placeholder=\"请输入商品名称\" name=\"name\">\n" +
                            "                                                        <small>10字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        采购单价</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addgoodbuy\" required\n" +
                            "                                                               placeholder=\"请输入采购单价\" name=\"name\">\n" +
                            "                                                        <small>采购单价</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        销售单价</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addgoodsell\" required\n" +
                            "                                                               placeholder=\"请输入销售单价\" name=\"name\">\n" +
                            "                                                        <small>销售单价</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label for=\"user-intro\" class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        备注</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "\t\t\t\t\t\t\t\t\t<textarea class=\"\" rows=\"5\" id=\"goodinfo\" name=\"remark\"\n" +
                            "                                              placeholder=\"输入备注\"></textarea>\n" +
                            "                                                        <small>20字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <div class=\"am-u-sm-9 am-u-sm-push-3\">\n" +
                            "                                                        <input type=\"submit\" class=\"am-btn am-btn-success\"\n" +
                            "                                                               value=\"添加商品\"/>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                            </form>\n" +
                            "                                        </div>\n" +
                            "                                    </div>\n" +
                            "\n" +
                            "                                </div>\n" +
                            "                                <!-- content end -->\n" +
                            "                            </div>",
                        title: "添加商品",
                        dialogModal: true,
                        iframeWidth: 500,
                        iframeHeight: 400
                    });
                }

                var btn_goodedit = function (id) {
                    $.jq_Panel({
                        url: "/RawMaterialsType/EditRawMaterialsType?id=" + id,
                        message: " <div class=\"am-cf admin-main\" style=\"padding-top: 0px;\">\n" +
                            "                        <!-- content start -->\n" +
                            "\n" +
                            "                        <div class=\"am-cf admin-main\" style=\"padding-top: 0px;\">\n" +
                            "                            <!-- content start -->\n" +
                            "                            <div class=\"admin-content\">\n" +
                            "                                <div class=\"admin-content-body\">\n" +
                            "\n" +
                            "                                    <div class=\"am-g\">\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-4 am-u-md-push-8\">\n" +
                            "\n" +
                            "                                        </div>\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-8 am-u-md-pull-4\"\n" +
                            "                                             style=\"padding-top: 30px;\">\n" +
                            "                                            <form class=\"am-form am-form-horizontal\"\n" +
                            "                                                  action=\"user/addUser1Submit.action\" method=\"post\">\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        商品名称</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addgoodname\" required\n" +
                            "                                                               placeholder=\"请输入商品名称\" name=\"name\">\n" +
                            "                                                        <small>10字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        采购单价</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addgoodbuy\" required\n" +
                            "                                                               placeholder=\"请输入采购单价\" name=\"name\">\n" +
                            "                                                        <small>采购单价</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        销售单价</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addgoodsell\" required\n" +
                            "                                                               placeholder=\"请输入销售单价\" name=\"name\">\n" +
                            "                                                        <small>销售单价</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label for=\"user-intro\" class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        备注</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "\t\t\t\t\t\t\t\t\t<textarea class=\"\" rows=\"5\" id=\"goodinfo\" name=\"remark\"\n" +
                            "                                              placeholder=\"输入备注\"></textarea>\n" +
                            "                                                        <small>20字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <div class=\"am-u-sm-9 am-u-sm-push-3\">\n" +
                            "                                                        <input type=\"submit\" class=\"am-btn am-btn-success\"\n" +
                            "                                                               value=\"确认修改\"/>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                            </form>\n" +
                            "                                        </div>\n" +
                            "                                    </div>\n" +
                            "\n" +
                            "                                </div>\n" +
                            "                                <!-- content end -->\n" +
                            "                            </div>\n" +
                            "                            <!--添加 end-->\n" +
                            "                            <!--end-->\n" +
                            "                        </div>\n" +
                            "                    </div>",
                        title: "编辑商品",
                        dialogModal: true,
                        iframeWidth: 500,
                        iframeHeight: 400
                    });
                }

                var btn_gooddelete = function (id) {
                    $.jq_Confirm({
                        message: "您确定要删除吗?",
                        btnOkClick: function (id) {
                            var request = new XMLHttpRequest();
                            let params = "goodid=" + encodeURIComponent(id);
                            request.open("post", "/test_war/deletegood", true)
                            request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
                            request.send(params);

                            request.onreadystatechange = function () {
                                if (myrequest.readyState === 4) alert(myrequest.responseText);
                            }
                            window.alert("你好");

                        }
                    });
                }

                var btn_supplyadd = function (id) {
                    $.jq_Panel({
                        url: "/RawMaterialsType/EditRawMaterialsType?id=" + id,
                        message: "<div class=\"admin-content\">\n" +
                            "                                <div class=\"admin-content-body\">\n" +
                            "\n" +
                            "                                    <div class=\"am-g\">\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-4 am-u-md-push-8\">\n" +
                            "\n" +
                            "                                        </div>\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-8 am-u-md-pull-4\"\n" +
                            "                                             style=\"padding-top: 30px;\">\n" +
                            "                                            <form class=\"am-form am-form-horizontal\"\n" +
                            "                                                  action=\"/test_war/addsupply\" method=\"post\">\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        供应商名称</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addsupplyname\" required\n" +
                            "                                                               placeholder=\"请输入供应商名称\" name=\"addsupplyname\">\n" +
                            "                                                        <small>10字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        电话</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addgsupplyphone\" required\n" +
                            "                                                               placeholder=\"请输入电话号码\" name=\"addgsupplyphone\">\n" +
                            "                                                        <small>供应商电话</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label for=\"user-intro\" class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        备注</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "\t\t\t\t\t\t\t\t\t<textarea class=\"\" rows=\"5\" id=\"addsupplyinfo\" name=\"addsupplyinfo\"\n" +
                            "                                              placeholder=\"输入备注\"></textarea>\n" +
                            "                                                        <small>20字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <div class=\"am-u-sm-9 am-u-sm-push-3\">\n" +
                            "                                                        <input type=\"submit\" class=\"am-btn am-btn-success\"\n" +
                            "                                                               value=\"添加供应商\"/>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                            </form>\n" +
                            "                                        </div>\n" +
                            "                                    </div>\n" +
                            "\n" +
                            "                                </div>\n" +
                            "                                <!-- content end -->\n" +
                            "                            </div>",
                        title: "添加供应商",
                        dialogModal: true,
                        iframeWidth: 500,
                        iframeHeight: 400
                    });
                }

                var btn_supplyedit = function (id) {
                    $.jq_Panel({
                        url: "/RawMaterialsType/EditRawMaterialsType?id=" + id,
                        message: "<div class=\"admin-content\">\n" +
                            "                                <div class=\"admin-content-body\">\n" +
                            "\n" +
                            "                                    <div class=\"am-g\">\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-4 am-u-md-push-8\">\n" +
                            "\n" +
                            "                                        </div>\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-8 am-u-md-pull-4\"\n" +
                            "                                             style=\"padding-top: 30px;\">\n" +
                            "                                            <form class=\"am-form am-form-horizontal\"\n" +
                            "                                                  action=\"/test_war/editsupply\" method=\"post\">\n" +
                            "                                                <input type=\"text\" id=\"addsupplyid\" name=\"addsupplyid\"\n" +
                            "                                                       value=\"1\" style=\"display: none\">\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        供应商名</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addsupplyname\" required\n" +
                            "                                                               placeholder=\"请输入供应商名称\" name=\"addsupplyname\">\n" +
                            "                                                        <small>10字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        电话</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addsupplyphone\" required\n" +
                            "                                                               placeholder=\"请输入电话号码\" name=\"addsupplyphone\">\n" +
                            "                                                        <small>供应商电话</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label for=\"user-intro\" class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        备注</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "\t\t\t\t\t\t\t\t\t<textarea class=\"\" rows=\"5\" id=\"addsupplyinfo\" name=\"addsupplyinfo\"\n" +
                            "                                              placeholder=\"输入备注\"></textarea>\n" +
                            "                                                        <small>20字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <div class=\"am-u-sm-9 am-u-sm-push-3\">\n" +
                            "                                                        <input type=\"submit\" class=\"am-btn am-btn-success\"\n" +
                            "                                                               value=\"确认修改\"/>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                            </form>\n" +
                            "                                        </div>\n" +
                            "                                    </div>\n" +
                            "\n" +
                            "                                </div>\n" +
                            "                                <!-- content end -->\n" +
                            "                            </div>",
                        title: "编辑供应商",
                        dialogModal: true,
                        iframeWidth: 500,
                        iframeHeight: 400
                    });
                }

                var btn_supplydelete = function (id) {
                    $.jq_Confirm({
                        message: "您确定要删除吗?",
                        btnOkClick: function (id) {
                            var request = new XMLHttpRequest();
                            let params = "goodid=" + encodeURIComponent(id);
                            request.open("post", "/test_war/deletegood", true)
                            request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
                            request.send(params);

                            request.onreadystatechange = function () {
                                if (myrequest.readyState === 4) alert(myrequest.responseText);
                            }
                            window.alert("你好");

                        }
                    });
                }

                var btn_customeradd = function (id) {
                    $.jq_Panel({
                        url: "/RawMaterialsType/EditRawMaterialsType?id=" + id,
                        message: "<div class=\"admin-content\">\n" +
                            "                                <div class=\"admin-content-body\">\n" +
                            "\n" +
                            "                                    <div class=\"am-g\">\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-4 am-u-md-push-8\">\n" +
                            "\n" +
                            "                                        </div>\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-8 am-u-md-pull-4\"\n" +
                            "                                             style=\"padding-top: 30px;\">\n" +
                            "                                            <form class=\"am-form am-form-horizontal\"\n" +
                            "                                                  action=\"/test_war/addcustomer\" method=\"post\">\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        客户名称</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addcustomername\" required\n" +
                            "                                                               placeholder=\"请输入客户名称\" name=\"addcustomername\">\n" +
                            "                                                        <small>10字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        电话</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addcustomerphone\" required\n" +
                            "                                                               placeholder=\"请输入电话号码\" name=\"addcustomerphone\">\n" +
                            "                                                        <small>客户电话</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label for=\"user-intro\" class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        备注</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "\t\t\t\t\t\t\t\t\t<textarea class=\"\" rows=\"5\" id=\"user-intro\" name=\"addcustomerinfo\"\n" +
                            "                                              placeholder=\"输入备注\"></textarea>\n" +
                            "                                                        <small>20字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <div class=\"am-u-sm-9 am-u-sm-push-3\">\n" +
                            "                                                        <input type=\"submit\" class=\"am-btn am-btn-success\"\n" +
                            "                                                               value=\"添加客户\"/>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                            </form>\n" +
                            "                                        </div>\n" +
                            "                                    </div>\n" +
                            "\n" +
                            "                                </div>\n" +
                            "                                <!-- content end -->\n" +
                            "                            </div>",
                        title: "添加供应商",
                        dialogModal: true,
                        iframeWidth: 500,
                        iframeHeight: 400
                    });
                }

                var btn_customeredit = function (id) {
                    $.jq_Panel({
                        url: "/RawMaterialsType/EditRawMaterialsType?id=" + id,
                        message: "<div class=\"admin-content\">\n" +
                            "                                <div class=\"admin-content-body\">\n" +
                            "\n" +
                            "                                    <div class=\"am-g\">\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-4 am-u-md-push-8\">\n" +
                            "\n" +
                            "                                        </div>\n" +
                            "                                        <div class=\"am-u-sm-12 am-u-md-8 am-u-md-pull-4\"\n" +
                            "                                             style=\"padding-top: 30px;\">\n" +
                            "                                            <form class=\"am-form am-form-horizontal\"\n" +
                            "                                                  action=\"/test_war/editcustomer\" method=\"post\">\n" +
                            "                                                <input type=\"text\" id=\"addcustomerid\" name=\"addcustomerid\"\n" +
                            "                                                       value=\"1\" style=\"display: none\">\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        客户名称</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addcustomername\" required\n" +
                            "                                                               placeholder=\"请输入客户名称\" name=\"addcustomername\">\n" +
                            "                                                        <small>10字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        电话</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "                                                        <input type=\"text\" id=\"addcustomerphone\" required\n" +
                            "                                                               placeholder=\"请输入电话号码\" name=\"addcustomerphone\">\n" +
                            "                                                        <small>客户电话</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <label for=\"user-intro\" class=\"am-u-sm-3 am-form-label\">\n" +
                            "                                                        备注</label>\n" +
                            "                                                    <div class=\"am-u-sm-9\">\n" +
                            "\t\t\t\t\t\t\t\t\t<textarea class=\"\" rows=\"5\" id=\"user-intro\" name=\"addcustomerinfo\"\n" +
                            "                                              placeholder=\"输入备注\"></textarea>\n" +
                            "                                                        <small>20字以内...</small>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                                <div class=\"am-form-group\">\n" +
                            "                                                    <div class=\"am-u-sm-9 am-u-sm-push-3\">\n" +
                            "                                                        <input type=\"submit\" class=\"am-btn am-btn-success\"\n" +
                            "                                                               value=\"确认修改\"/>\n" +
                            "                                                    </div>\n" +
                            "                                                </div>\n" +
                            "                                            </form>\n" +
                            "                                        </div>\n" +
                            "                                    </div>\n" +
                            "\n" +
                            "                                </div>\n" +
                            "                                <!-- content end -->\n" +
                            "                            </div>",
                        title: "编辑供应商",
                        dialogModal: true,
                        iframeWidth: 500,
                        iframeHeight: 400
                    });
                }

                var btn_customerdelete = function (id) {
                    $.jq_Confirm({
                        message: "您确定要删除吗?",
                        btnOkClick: function (id) {
                            var request = new XMLHttpRequest();
                            let params = "goodid=" + encodeURIComponent(id);
                            request.open("post", "/test_war/deletegood", true)
                            request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
                            request.send(params);

                            request.onreadystatechange = function () {
                                if (myrequest.readyState === 4) alert(myrequest.responseText);
                            }
                            window.alert("你好");

                        }
                    });
                }
            </script>

        </div>
    </div>
</div>
</body>

</html>